import React from 'react'
import { Route ,Switch ,Redirect} from 'react-router-dom'
import Home from '../page/home/home' //主页
import Mine from '../page/mine/mine' //我的
import Advise from '../page/advise/advise' //建议反馈
import EquipmentRepairService from '../page/equipment-repair-service/equipmentRepairService' //设备报修
import Maintenance from '../page/maintenance/maintenance' //保养任务
import EquipmentSwitch from '../page/equipment-switch/equipmentSwitch' //设备开关
import Fill from '../page/fill-service/fill-service' //填单报修
import RoomList from '../page/roomlist/roomlist' //房间列表
function RouteMap() {
    return (
        <Switch>
            <Route exact path="/home" component={Home} />
            <Route exact path="/mine" component={Mine} />
            <Route exact path="/jyfk" component={Advise} />
            <Route exact path="/sbbx" component={EquipmentRepairService} />
            <Route exact path="/byrw" component={Maintenance} />
            <Route exact path="/sbkg" component={EquipmentSwitch} />
            <Route exact path="/tdbx" component={Fill} />
            <Route exact path="/fjlb" component={RoomList} />
            <Redirect to="/home" />
        </Switch>
    )
}
export default RouteMap